projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45ae254
)
video, formike: change tag/val write
author
Heiko Schocher
<
[email protected]
>
Tue, 22 Oct 2013 09:06:24 +0000
(11:06 +0200)
committer
Anatolij Gustschin
<
[email protected]
>
Wed, 30 Oct 2013 09:48:41 +0000
(10:48 +0100)
write first the "tag" 8 bit value and then the "val" 8-bit
to the display.
Tested on the rut board.
Signed-off-by: Heiko Schocher <
[email protected]
>
Cc: Anatolij Gustschin <
[email protected]
>
drivers/video/formike.c
patch
|
blob
|
history
diff --git
a/drivers/video/formike.c
b/drivers/video/formike.c
index b9b68221387d84c4cbf962f6c28b46647f09d9bc..138315843f816e69d66d86829f9866faf645f46b 100644
(file)
--- a/
drivers/video/formike.c
+++ b/
drivers/video/formike.c
@@
-27,10
+27,11
@@
static int spi_write_tag_val(struct spi_slave *spi, unsigned char tag,
int ret;
buf[0] = tag;
- buf[1] = val;
- flags |= SPI_XFER_END;
+ ret = spi_xfer(spi, 8, buf, NULL, flags);
+ buf[0] = val;
+ flags = SPI_XFER_END;
+ ret = spi_xfer(spi, 8, buf, NULL, flags);
- ret = spi_xfer(spi, 16, buf, NULL, flags);
#ifdef KWH043ST20_F01_SPI_DEBUG
printf("spi_write_tag_val: tag=%02X, val=%02X ret: %d\n",
tag, val, ret);